import { withInstall } from '@ibiz-template/vue3-util';
import { registerEditorProvider } from '@ibiz-template/runtime';
import { TreePickerEditorProvider } from './tree-picker.provider';
import { TreePicker } from './tree-picker';

export const IBizTreePicker = withInstall(TreePicker, v => {
  v.component(TreePicker.name!, TreePicker);
  registerEditorProvider(
    'MDROPDOWNLIST_TREE_PICKER',
    () => new TreePickerEditorProvider(),
  );
});
